import React, { useEffect, useState, useRef } from "react";
import SDK from './Component/SDK';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faHeadset} from '@fortawesome/free-solid-svg-icons'
// 如果使用了官方组件库
// import { BoolWidget } from 'qcloud-iot-panel-component';

import './DevicePanel.less';

const sdk = window.h5PanelSdk;
console.log('h5 sdk', sdk);

export default function DevicePanel() {
  return (
    <div className="panel">
      <h2><FontAwesomeIcon icon={faHeadset} /> 智慧照明控制器</h2>
      <SDK />
    </div>
  );
}
